package day8;

/**
 * @author oldliu
 * @since 1.0
 */
//不是一个线程
public class Thread0 {
    private String name;
    public Thread0(String n){
        this.name=n;
    }
    void start(){
        run();
    }
    public void run(){
        for (int i = 1; i <= 20; i++) {
            System.out.println(name+"==="+i);
        }
    }

    public static void main(String[] args) {
        //还不是多线程
        //单线程
        for(int i=1;i<=4;i++){
            new Thread0("线程"+i).start();
        }
    }
}
